package com.ruoyi.project.system.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 中奖订单对象 sys_luck
 *
 * @author theme
 * @date 2021-01-17
 */
public class SysLuck extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单主键
     */
    private Long luckId;

    /**
     * 银行用户唯一标识
     */
    @ApiModelProperty(name = "银行用户唯一标识")
    @Excel(name = "用户openId",sort = 3)
    private String bankUserSign;

    /**
     * 昵称
     */
    @ApiModelProperty(name = "订单编号")
    @Excel(name = "订单编号",sort = 1)
    private String orderNo;

    /**
     * 头像
     */
    @ApiModelProperty(name = "头像")
    private Long goodId;

    /**
     * 奖品编号
     */
    @ApiModelProperty(name = "奖品编号")
    @Excel(name = "奖品编号",sort = 2)
    private String name;

    /**
     * 物流单号
     */
    @ApiModelProperty(name = "物流单号")
    @Excel(name = "物流单号",sort = 7)
    private String express;

    @ApiModelProperty(name = "数据字典(商品类型)")
    private String type;

    /**
     * 抽奖结果(0-没中奖  1-已中奖)
     */
    @ApiModelProperty(name = "抽奖结果(0-没中奖  1-已中奖)")
    private String reward;

    /**
     * 数据字典(1-待发货  2-已发货)
     */
    @ApiModelProperty(name = "数据字典(0-待发货  1-已发货)")
    private String status;

    /**
     * 商品价格
     */
    @ApiModelProperty(name = "商品价格")
    private Double money;

    private SysGood sysGood;
    @Excel(name = "地址",sort = 5)
    private String detail;

    @Excel(name = "手机",sort = 4)
    private String phone;
    @Excel(name = "收货人",sort = 0)
    private String consignee;

    @Excel(name = "中奖时间",sort = 6)
    private String timeStr;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setLuckId(Long luckId) {
        this.luckId = luckId;
    }

    public Long getLuckId() {
        return luckId;
    }

    public void setBankUserSign(String bankUserSign) {
        this.bankUserSign = bankUserSign;
    }

    public String getBankUserSign() {
        return bankUserSign;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setExpress(String express) {
        this.express = express;
    }

    public String getExpress() {
        return express;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public String getReward() {
        return reward;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public SysGood getSysGood() {
        return sysGood;
    }

    public void setSysGood(SysGood sysGood) {
        this.sysGood = sysGood;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getTimeStr() {
        return timeStr;
    }

    public void setTimeStr(String timeStr) {
        this.timeStr = timeStr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("luckId", getLuckId())
                .append("bankUserSign", getBankUserSign())
                .append("orderNo", getOrderNo())
                .append("goodId", getGoodId())
                .append("name", getName())
                .append("express", getExpress())
                .append("reward", getReward())
                .append("status", getStatus())
                .append("money", getMoney())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
